<template>
  <div id="explain">
    <div>{{title}}</div>
    <textarea v-model="content" :rows="rows" @input="$emit('update:modelValue',$event.target.value)"></textarea>
  </div>
</template>

<script>
export default {
  props:{
    title:String,
    modelValue:String,
    rows:{
      type:Number,
      default:10,
    }
  },
  emits:['update:modelValue'],
  inject:['webname'],
  data() {
    return {
      content: this.modelValue
    }
  },
}
</script>

<style scoped>
#explain{
  display: flex;
  align-items: center;
  font-size: 16px;
}
#explain textarea{
  margin-left: 10px;
  outline: none;
  color:#666;
}
</style>